package Cantella::DJabberd::Web::UI::Controller::Collection::CRUD;

use base 'Reaction::UI::Controller::Collection::CRUD';
use Reaction::Class;

use aliased 'Cantella::DJabberd::Web::UI::ViewPort::Object';
use aliased 'Cantella::DJabberd::Web::UI::ViewPort::Collection::Grid::Member::WithActions';

sub _build_action_viewport_map {
  my $map = shift->next::method(@_);
  $map->{view} = Object;
  return $map;
}

sub _build_action_viewport_args {
  my $args = shift->next::method(@_);
  $args->{list}->{member_class} = WithActions; 
  return $args;
}

1;
